

#ifndef __EV_UTILS_H__
#define __EV_UTILS_H__

#ifdef __cplusplus
extern "C" {
#endif


#include <stdint.h>

uint16_t ev_crc16( const uint8_t* data, uint32_t datalen, uint16_t crc_in);
uint32_t ev_crc32(const uint8_t *data, uint32_t datalen,uint32_t crc_in);
uint32_t ev_checksum(const uint8_t *data, uint32_t datalen);
void ev_sha256(const uint8_t *data, uint32_t datalen, uint8_t hash[32]);

#ifdef __cplusplus
}
#endif

#endif /* __EV_UTILS_H__ */
